#!/bin/zsh
./mvnw clean package -DskipTests
mkdir -p target/native
cd target/native
jar -xvf ../demo-0.0.1-SNAPSHOT.jar ./
cp -R META-INF BOOT-INF/classes/
native-image -H:Name=my-app -cp BOOT-INF/classes:`find BOOT-INF/lib | tr '\n' ':'`